API Documentation
ImageView.h
1 // ImageView.h
3 //
5 
6 namespace nkImages
7 {
13  class ImageView final : public ImageBase
14  {
15  public :
16 
20  ImageView () = delete ;
26  ImageView (const Image& image) ;
41  ImageView (const nkMemory::BufferView<unsigned char>& dataView, unsigned int width, unsigned int height, PIXEL_FORMAT format) ;
53  ImageView (const nkMemory::BufferView<unsigned char> dataView, unsigned int width, unsigned int height, unsigned int depth, PIXEL_FORMAT format, unsigned int pixelByteSize, unsigned int rowByteSize) ;
60  ImageView (const ImageView& other) ;
66  ImageView (ImageView&& other) ;
71 
72  // Data access
76  virtual unsigned char* getDataPtr () const override ;
77 
78  // Operators
84  ImageView& operator= (const ImageView& other) ;
91  } ;
92 }
nkImages::ImageView::getDataPtr
virtual unsigned char * getDataPtr() const override
nkImages::ImageView::ImageView
ImageView(const nkMemory::BufferView< unsigned char > &dataView, unsigned int width, unsigned int height, PIXEL_FORMAT format)
nkImages::ImageView::ImageView
ImageView(ImageView &&other)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkImages::ImageView::ImageView
ImageView(const ImageView &other)
nkImages::ImageView
Holds all information required for an image, with no ownership over the data.
Definition: ImageView.h:14
nkImages::ImageView::ImageView
ImageView()=delete
nkImages::ImageView::ImageView
ImageView(const nkMemory::BufferView< unsigned char > dataView, unsigned int width, unsigned int height, unsigned int depth, PIXEL_FORMAT format, unsigned int pixelByteSize, unsigned int rowByteSize)
nkImages::ImageBase
Base for all image data classes.
Definition: ImageBase.h:19
nkImages
Encompasses all API of component NilkinsImages.
Definition: BmpEncoder.h:7
nkImages::ImageView::ImageView
ImageView(const Image &image)
nkImages::ImageView::~ImageView
~ImageView()
nkImages::PIXEL_FORMAT
PIXEL_FORMAT
Lists formats for pixels.
Definition: PixelFormat.h:16
nkImages::ImageView::operator=
ImageView & operator=(const ImageView &other)
nkImages::ImageView::ImageView
ImageView(const nkMemory::BufferView< unsigned char > &dataView)
nkImages::Image
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14